package com.xc.hotelmgr.consumermq.service.FeignService;


import com.xc.hotelmgr.consumermq.pojo.mq.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient("datapusher-ali")
public interface AliFeignServiceOnece {
    /**
     * 分组酒店推送,店铺初始化
     * @param sendAll
     * @return
     */
    @RequestMapping(value = "/hotel/send_all", method = RequestMethod.POST)
    String pushHotelAllSend(@RequestBody SendAll sendAll);

    /**
     * 上下架单个酒店
     * @param upDown
     * @return
     */
    @RequestMapping(value = "/hotel/state", method = RequestMethod.POST)
    String hotelStateSend(@RequestBody UpDown upDown);

    @RequestMapping(value = "/rateplan/delete_rateplan", method = RequestMethod.POST)
    boolean deleteRateplanSend(@RequestBody DelRpMQ delRpMQ);
}
